<html>
<head>
<meta charset=utf-8>
<script>
function getName()
{
alert("Привет, " + document.forms[0].textField.value);
}
</script>
</head>
<body>
<form>
<input type=text name="textField" size=45>
</br>
</br>
</br>
<button type="submit" onClick="getName()">button</button>
</form>
</body>
</html>
